let _env: 'test'|'pre'|'master'|'localhost' = 'localhost';

/**
 * 前端运行环境判断(需配置)
 */
if (location.hostname.includes('test.lammu.cn')) {
  _env = 'test';
} else if (location.hostname.includes('pre.lammu.cn')) {
  _env = 'pre';
} else if (location.hostname.includes('lammu.cn')) {
  _env = 'master';
}

/** 当前运行环境 */
export const env = _env;

/** 后端接口(需配置) */
export const host = {
  'localhost': 'http://localhost:9000',
  'test': 'https://lowcodenest.test.lammu.cn',
  'pre': 'https://lowcodenest.pre.lammu.cn',
  'master': 'https://lowcodenest.lammu.cn',
}[env];
